package com.stm.bi.model;

import java.util.HashMap;
import java.util.List;

/**
 * @Author chenyingjun
 * @Desc
 * @Date 2025/2/6 14:51
 */
public class RowData extends HashMap<String, Object> {
    private static final String CHILDREN = "children";

    public RowData() {
        super();
    }

    public RowData(String key, Object value) {
        super();
        super.put(key, value);
    }

    public RowData(RowData rowData){
        super(rowData);
    }

    public List<RowData> getChildren() {
        return (List<RowData>)get(CHILDREN);
    }

    public RowData setChildren(List<RowData> children) {
        super.put(CHILDREN, children);
        return this;
    }
}
